<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of admin_m
 *
 * @author Gidaff_01
 */
class Support_m extends CI_Model {

    public function __construct() {
        parent::__construct();
        $this->load->database();
    }
    
    function get_support_account(){
    
       $this->db->select();
       $this->db->from('support');
       $this->db->order_by('id', 'ASC');
       $query = $this->db->get();
       return $query->result_array();
    
    }
    
    function delete_support_account($id){
    	return $this->db->delete('support', array('id' => $id));
            	
    }
    
 	function delete_multi_support_accounts($list) {
        $this->db->where('id in ' . $list);
        $query = $this->db->delete('support');
        return $query;
    }
    
    function add_support_account($data){
   
        return $this->db->insert('support', $data);
    
    }
    
     
}
 ?>